package com.roocon.design_pattern.chapter03_readwrite_lock;

public class Client {

  public static void main(String[] args) {
    final ShareData shareData = new ShareData(10);
    new ReaderWorker(shareData).start();
    new ReaderWorker(shareData).start();
    new ReaderWorker(shareData).start();
    new ReaderWorker(shareData).start();
    new ReaderWorker(shareData).start();
    new WriteWorker(shareData,"qwertyuiopasdfg").start();
    new WriteWorker(shareData,"QWERTYUIOPASDFG").start();

  }
}
